home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / include / dos / record.h < prev    next >
C/C++ Source or Header  |  1996-09-10  |  890b  |  46 lines

  1. #ifndef DOS_RECORD_H
  2. #define DOS_RECORD_H 1
  3. /*
  4. ** record.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/02/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for record.h
  17. */
  18. #ifndef RecordLockPtr
  19. #define RecordLockPtr ADDRESS
  20. #endif
  21. /*
  22. ** End of StructPointer defines for record.h
  23. */
  24.     
  25. #ifndef DOS_DOS_H
  26. #include <dos/dos.h>
  27. #endif
  28.  
  29.  
  30. /* Modes for LockRecord/LockRecords() */
  31. #define REC_EXCLUSIVE       0
  32. #define REC_EXCLUSIVE_IMMED 1
  33. #define REC_SHARED      2
  34. #define REC_SHARED_IMMED    3
  35.  
  36. /* STRUCT to be passed to LockRecords()/UnLockRecords() */
  37.  
  38. STRUCT RecordLock  
  39.     ADDRESS    rec_FH      /* filehandle */
  40.     LONGINT   rec_Offset  /* offset in file */
  41.     LONGINT   rec_Length  /* length of file to be locked */
  42.     LONGINT   rec_Mode    /* Type of lock */
  43. END STRUCT 
  44.  
  45. #endif /* DOS_RECORD_H */
  46.